import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import "amfe-flexible";
import "./assets/css/reset.less";
import {
  Tabbar,
  TabbarItem,
  NavBar,
  Grid,
  GridItem,
  Tab,
  Tabs,
  Icon,
  Sidebar,
  SidebarItem,
  Toast,
  DropdownMenu,
  DropdownItem,
  Empty,
  Sticky,
  Cascader,
  Field,
  Popup,
  Card,
  Col,
  Row,
  Button,
  Image as VanImage,
  RadioGroup,
  Radio,
  Cell,
  CellGroup,
  Search,
  ConfigProvider,
  Switch,
  Lazyload,
  Swipe,
  SwipeItem,
  PullRefresh,
  NoticeBar,
  CouponCell,
  ActionBar,
  ActionBarIcon,
  ActionBarButton,
  ContactEdit,
  List,
  CouponList,
  NumberKeyboard,
} from "vant";

createApp(App)
  .use(store)
  .use(router)
  .use(Tabbar)
  .use(TabbarItem)
  .use(CouponCell)
  .use(Icon)
  .use(CouponList)
  .use(Tab)
  .use(Tabs)
  .use(NavBar)
  .use(Grid)
  .use(GridItem)
  .use(Card)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Toast)
  .use(Icon)
  .use(Sticky)
  .use(Cascader)
  .use(Field)
  .use(Col)
  .use(Row)
  .use(VanImage)
  .use(RadioGroup)
  .use(Radio)
  .use(Cell)
  .use(CellGroup)
  .use(Tab)
  .use(Tabs)
  .use(DropdownMenu)
  .use(DropdownItem)
  .use(Empty)
  .use(Search)
  .use(ConfigProvider)
  .use(Swipe)
  .use(SwipeItem)
  .use(Switch)
  .use(List)
  .use(NumberKeyboard)
  .use(Lazyload, {
    lazyComponent: true,
  })
  .use(PullRefresh)
  .use(Popup)
  .use(Button)
  .use(NoticeBar)
  .use(ActionBar)
  .use(ContactEdit)
  .use(ActionBarIcon)
  .use(ActionBarButton)
  .mount("#app");
